package com.example.leave.pojo;

import com.example.leave.component.valid.PropertiesMostInLeaveForm;
import lombok.Data;
import org.springframework.data.domain.Sort.Direction;

import javax.validation.constraints.NotNull;

@Data
public class Sort {
    @NotNull
    Direction direction;
    @PropertiesMostInLeaveForm(message = "所提供排序的属性不存在")
    String properties;
}
